﻿HmJS.$Import('util.number.Number3D');
//HmJS.$Import('core.domready');

HmJS.register('demo.module.util.number.number3d', function ($ns) {
	var that = {};

	that.todo = function () {

		var log = '';
		var Number3D = $ns.util.number.Number3D;

		var n1 = new Number3D(2, 2, 2);
		var n2 = new Number3D(5, 5, 5);

		var n3 = Number3D.add(n1, n2);

		log += 'N1 is: ' + n1 + '<br/>';
		log += 'N2 is: ' + n2 + '<br/>';
		log += 'N3 is: ' + n3 + '<br/>';

		n1.rotateZ(90);

		log += 'N1 now is: ' + n1 + '<br/>';

		n1.normalize();

		log += 'N1 finaly is: ' + n1 + '<br/>';

		$('test').set('html', log);
	};

	return that;
});
